﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kollektiv.DB.NHibernate;

namespace Kollektiv.DataModel.Web.NHibernate
{
    public abstract class RatingMap<T> : DataObjectMap<T> where T : Rating
    {
        public RatingMap()
            : base()
        {
            HasMany<RatingChoice>(x => x.RatingChoices).Cascade.All();
            HasManyToMany<User>(x => x.Users);
        }
    }
}
